package com.smartmail.utility;

public class Option implements Comparable<Option> {
    private String name;
    private String data;
    private String path;
    private int type;
    // 0 - dir
    // 1 - file
    
    public Option(String n, String d, String p, int t){
        name = n;
        data = d;
        type = t;
        path = p;
    }
    
    public String getName(){
        return name;
    }
    
    public int getType(){
        return type;
    }
    
    public String getData(){
    	return data;
    }
    
    public String getPath(){
        return path;
    }
    
	@Override
	public int compareTo(Option option){        
		if(this.name != null){
	        return this.name.toLowerCase().compareTo(option.getName().toLowerCase());			
		} 
		else {
	        throw new IllegalArgumentException();			
		}
	}

}
